def favorite_book(title):
    if title.__class__ == str:
        print("One of my favorite book is %s"%title)
    else:
        print('please input a str!')

favorite_book('Alice in world')
